home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutPStrTo.c < prev    next >
MacBinary  |  1994-08-31  |  1.0 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PutPStrTo.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 18:54:20 1994, modified Wed Aug 31 18:54:20 1994, creator Think C, type ASCII, 412 bytes "PutPStrTo.c" , at 0x21c 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 75 74 50 53 74 | 72 54 6f 2e 63 00 00 00 |..PutPSt|rTo.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 01 9c 00 | 00 01 7e aa 8a ba 9c aa |........|..~.....|
|00000060| 8a ba 9c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 96 1f 00 00 |........|........|
|00000080| 09 65 78 74 65 72 6e 09 | 75 6e 73 69 67 6e 65 64 |.extern.|unsigned|
|00000090| 20 63 68 61 72 09 5f 5f | 70 75 74 42 75 66 66 65 | char.__|putBuffe|
|000000a0| 72 5b 32 35 36 5d 3b 0d | 09 65 78 74 65 72 6e 09 |r[256];.|.extern.|
|000000b0| 73 68 6f 72 74 09 09 09 | 5f 5f 70 75 74 4d 61 72 |short...|__putMar|
|000000c0| 6b 3b 0d 0d 76 6f 69 64 | 20 50 75 74 43 68 61 72 |k;..void| PutChar|
|000000d0| 28 63 68 61 72 20 63 29 | 3b 0d 76 6f 69 64 20 50 |(char c)|;.void P|
|000000e0| 75 74 53 70 61 63 65 73 | 54 6f 28 69 6e 74 20 65 |utSpaces|To(int e|
|000000f0| 6e 64 70 6f 73 29 3b 0d | 0d 76 6f 69 64 20 50 75 |ndpos);.|.void Pu|
|00000100| 74 50 53 74 72 54 6f 28 | 63 6f 6e 73 74 20 75 6e |tPStrTo(|const un|
|00000110| 73 69 67 6e 65 64 20 63 | 68 61 72 2a 20 73 2c 20 |signed c|har* s, |
|00000120| 69 6e 74 20 65 6e 64 70 | 6f 73 29 0d 7b 0d 09 09 |int endp|os).{...|
|00000130| 69 6e 74 09 69 3b 0d 0d | 09 69 66 20 28 20 65 6e |int.i;..|.if ( en|
|00000140| 64 70 6f 73 20 3e 20 5f | 5f 70 75 74 4d 61 72 6b |dpos > _|_putMark|
|00000150| 20 29 0d 09 7b 0d 09 09 | 66 6f 72 20 28 20 69 3d | )..{...|for ( i=|
|00000160| 31 3b 20 69 3c 3d 20 73 | 5b 30 5d 20 26 26 20 5f |1; i<= s|[0] && _|
|00000170| 5f 70 75 74 4d 61 72 6b | 3c 65 6e 64 70 6f 73 3b |_putMark|<endpos;|
|00000180| 20 69 2b 2b 20 29 0d 09 | 09 09 50 75 74 43 68 61 | i++ )..|..PutCha|
|00000190| 72 28 20 73 5b 69 5d 20 | 29 3b 0d 09 09 09 0d 09 |r( s[i] |);......|
|000001a0| 09 69 66 20 28 20 69 3c | 3d 20 73 5b 30 5d 20 29 |.if ( i<|= s[0] )|
|000001b0| 0d 09 09 09 5f 5f 70 75 | 74 42 75 66 66 65 72 5b |....__pu|tBuffer[|
|000001c0| 5f 5f 70 75 74 4d 61 72 | 6b 5d 20 3d 20 27 c9 27 |__putMar|k] = '.'|
|000001d0| 3b 0d 09 09 65 6c 73 65 | 0d 09 09 09 50 75 74 53 |;...else|....PutS|
|000001e0| 70 61 63 65 73 54 6f 28 | 20 65 6e 64 70 6f 73 20 |pacesTo(| endpos |
|000001f0| 29 3b 09 09 2f 2a 20 70 | 61 64 73 20 77 69 74 68 |);../* p|ads with|
|00000200| 20 73 70 61 63 65 73 20 | 69 66 20 6e 65 63 65 73 | spaces |if neces|
|00000210| 73 61 72 79 20 2a 2f 0d | 09 7d 0d 7d 00 00 00 00 |sary */.|.}.}....|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000290| 00 00 00 01 0c 42 72 61 | 69 6e 20 44 61 6d 61 67 |.....Bra|in Damag|
|000002a0| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|000002b0| 0b 50 75 74 50 53 74 72 | 54 6f 2e 63 02 00 02 00 |.PutPStr|To.c....|
|000002c0| 54 45 58 54 4b 41 48 4c | 01 00 ff ff ff ff 00 00 |TEXTKAHL|........|
|000002d0| 02 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 aa 20 c5 d3 00 00 | 01 9c 00 00 01 7e 00 00 |... ....|.....~..|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 04 25 00 00 00 |........|....%...|
|00000310| 00 02 05 49 63 6f 6e 0d | 00 00 00 00 00 00 00 00 |...Icon.|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 41 25 00 | 00 00 00 02 09 44 72 6f |.....A%.|.....Dro|
|00000340| 70 70 65 72 20 c4 00 00 | 00 00 00 00 00 00 00 00 |pper ...|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 49 |........|.......I|
|00000360| 25 00 00 00 00 02 09 44 | 72 6f 70 70 65 72 20 c4 |%......D|ropper .|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|000003b0| 02 7d 00 52 00 3c 01 dc | 02 6c aa 8a 74 6a 00 00 |.}.R.<..|.l..tj..|
|000003c0| 01 3f 00 00 01 3f 00 00 | 00 00 00 00 00 00 01 00 |.?...?..|........|
|000003d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 92 71 a4 |...L...L|...2..q.|
|000003e0| 12 00 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000003f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 92 6d 64 00 00 |........|....md..|
+--------+-------------------------+-------------------------+--------+--------+